﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.Master"  AutoEventWireup="true" CodeBehind="BGM_Approve_Header.aspx.cs" Inherits="KPIS.GERP.GBMS.APP_UI.Form.BGM_Approve_Header" enableEventValidation="false" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls" TagPrefix="BDP" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">

        
            function openProjectDetails(id) 
            {
                var type = document.getElementById("<%= hdfHeaderType.ClientID %>").value;

                radopen("BGM_Approval.aspx?id=" + id + "&type=" + type, "Approval");

//                if (type == "md") {
//                    radopen("BGM_Approval.aspx?id=" + id + "&type=" + type, "Approval");
//                }
//                else {
//                    radopen("BGM_Receive.aspx?id=" + id + "&type=" + type, "Approval");
//                }
                return false;
            }
            
            function closeRadWindow(sender, args) {
                return false;
                //$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest('CloseWindow');
            }
            
            function AfterChange(sender) {
                var date = sender.getSelectedDateFormatted();
                var all_date = date.split("/");
                var day = all_date[0];
                var month = all_date[1];
                var year = parseInt(all_date[2]) + 543;
                if (day.length == 1) {
                    day = '0' + day;
                }
                if (month.length == 1) {
                    month = '0' + month;
                }

                var maskText = $find("<%= txtDate.ClientID %>");
                maskText.SetValue(day + month + year);
            }

            function onTextChange(sender) {
                if (sender.get_value() == "") {
                    sender.set_text("");
                }
            } 

    
            var cancelDropDownClosing = false;
            function OnClientDropDownClosingHandler(sender, e) {
                e.set_cancel(cancelDropDownClosing);
            }
            function StopPropagation(e) {
                e.cancelBubble = true;
                if (e.stopPropagation) {
                    e.stopPropagation();
                }
            }
    
    </script>
 </telerik:RadCodeBlock>
 
     <telerik:RadWindowManager 
        ID="RadWindowManager1" 
        ShowContentDuringLoad="false" 
        VisibleStatusbar="false" 
        ReloadOnShow="true" 
        runat="server" 
        Skin="Web20" 
        Modal="true" 
        KeepInScreenBounds="true" 
        Style="z-index: 7001">
        <Windows>
            <telerik:RadWindow 
                ID="Approval" 
                runat="server" 
                Width="1024px" 
                Height="590px"
                Behaviors="Reload, Close"
                OnClientClose="closeRadWindow">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>  

        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None"  > 
        </telerik:RadAjaxLoadingPanel>
        
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" onajaxrequest="RadAjaxManager1_AjaxRequest">
            <AjaxSettings>

            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lstReq" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSelect">
                 <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lstReq" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="lstApp" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSelectAll">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lstReq" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="lstApp" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnRemove">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lstReq" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="lstApp" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnRemoveAll">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lstReq" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="lstApp" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlStrategy">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lstReq" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="ddlJobSite">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lstReq" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <%--<telerik:AjaxSetting AjaxControlID="ddlYear">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Grid" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Grid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelList" 
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>--%>
           </AjaxSettings>
        </telerik:RadAjaxManager>
<link rel="StyleSheet" href="../../Styles/StyleSheet.css" type="text/css">

<table style="width: 980px; height: 100%;">
    <tr>
    <td valign="top">
        <div class="Background710">
            <div class="BackgroundBottom710">
                ปีงบประมาณ :
                <telerik:RadComboBox ID="ddlYear" runat="server" Width="150px" 
                    CssClass="textbox-string" 
                    onselectedindexchanged="ddlYear_SelectedIndexChanged" AutoPostBack="True">
                    <Items>
                    </Items>
                </telerik:RadComboBox>
            </div>
        </div>  
    </td>
    </tr>
    <tr>
    <td valign = "top" colspan="2">
        <div class="Background980">
            <div class="BackgroundBottom980">
                <asp:Panel ID="panelList" runat="server" Height="360px" ScrollBars="Auto">
                    <table width="100%">
                        <tr>
                        <td align="left" colspan="2">
                            <br />
                            <div class="header-grid">
                                <div class="defaultFont">
                                    <asp:Label ID="lbTable" runat="server" Text=""></asp:Label> 
                                    <asp:Label ID="lblHeader_seq" runat="server" Visible="False"></asp:Label>
                                    <asp:HiddenField ID="hdfHeaderType" runat="server" />
                                </div>
                            </div>
                        </td>
                        </tr>
                        <tr>
                        <td align="center" colspan="2">
                            <br />
                                	<telerik:RadGrid GroupingSettings-CaseSensitive="false" 
                                        ID="Grid" 
                                        runat="server" 
                                        AllowFilteringByColumn="True" 
                                        AllowMultiRowSelection="True" 
                                        AllowPaging="True" 
                                        AutoGenerateColumns="False" 
                                        GridLines="None" 
                                        EnableAjax="true"
                                        MasterTableView-GridLines="None" 
                                        OnItemCommand="Grid_ItemCommand" 
                                        Width="95%">
                                         <mastertableview commanditemdisplay="Top" datakeynames="Sequence" 
                                        grouploadmode="Client" width="100%" NoMasterRecordsText=".. ไม่มีข้อมูล ..">
                                     <CommandItemTemplate>
                                        <table align="left">
                                        <tr>
                                        <td align="right">
                                            <asp:LinkButton ID="AddNew" runat="server" CssClass="LinkButton" OnClick="btnAddNew_Click"><img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/AddRecord.gif" />&nbsp;&nbsp;เพิ่มข้อมูลใหม่</asp:LinkButton>
                                        </td>
                                        <td> 
                                            <asp:LinkButton ID="Delete" runat="server" CommandName="Delete" CssClass="LinkButton" OnClientClick="javascript:return confirm('ยืนยันการลบข้อมูลที่เลือก')" ><img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Delete.gif" />&nbsp;&nbsp;ลบข้อมูล</asp:LinkButton>
                                        </td>
                                        <td> 
                                            <asp:LinkButton ID="Approve" runat="server"  CommandName="Approve" CssClass="LinkButton" OnClientClick="javascript:return confirm('ยืนยันการอนุมัติข้อมูลที่เลือก')" Visible="False"><img style="border:0px;vertical-align:middle;" alt="" src="../Image/Grid/Update.gif" />&nbsp;&nbsp;อนุมัติข้อมูล</asp:LinkButton>
                                        </td>
                                        </tr>
                                        </table>
                                    </CommandItemTemplate>
                                             <Columns>
                                                 <telerik:GridClientSelectColumn 
                                                     HeaderStyle-HorizontalAlign="Center" 
                                                     HeaderStyle-Width="30px" 
                                                     ItemStyle-HorizontalAlign="Center" 
                                                     UniqueName="ClientSelectColumn">
                                                     <HeaderStyle HorizontalAlign="Center" 
                                                     Width="30px" /><ItemStyle HorizontalAlign="Center" />
                                                 </telerik:GridClientSelectColumn>
                                                 <telerik:GridEditCommandColumn ButtonType="ImageButton" 
                                                     EditText="คลิกเพื่อแก้ไขข้อมูล"><ItemStyle Width="15px" />
                                                 </telerik:GridEditCommandColumn>
                                                <telerik:GridBoundColumn 
                                                     AutoPostBackOnFilter="true" 
                                                     CurrentFilterFunction="Contains" 
                                                     DataField="bgm_prj_header_name" 
                                                     FilterControlWidth="100%" 
                                                     HeaderStyle-Width="70px" 
                                                     HeaderStyle-HorizontalAlign="Center" 
                                                     ItemStyle-HorizontalAlign ="Left"
                                                     HeaderText="หัวเรื่องการประชุม" 
                                                     ShowFilterIcon="false" 
                                                     UniqueName="bgm_prj_header_name" Visible="true">
                                                  </telerik:GridBoundColumn>
                                                 <telerik:GridBoundColumn 
                                                    AutoPostBackOnFilter="true" 
                                                     CurrentFilterFunction="Contains" 
                                                     DataField="Total_Amount" 
                                                     DataFormatString="{0:#,##0.00}" 
                                                     FilterControlWidth="100%" 
                                                     HeaderStyle-HorizontalAlign="Center" 
                                                     HeaderText="เสนอขอ" 
                                                     ItemStyle-HorizontalAlign="Left" 
                                                     ShowFilterIcon="false" 
                                                     UniqueName="Total_Amount" Visible="true">
                                                     <HeaderStyle HorizontalAlign="Center" Width="70px" />
                                                     <ItemStyle HorizontalAlign="Right" />
                                                  </telerik:GridBoundColumn>
                                                  <telerik:GridBoundColumn 
                                                    AutoPostBackOnFilter="true" 
                                                     CurrentFilterFunction="Contains" 
                                                     DataField="approve_amount" 
                                                     DataFormatString="{0:#,##0.00}" 
                                                     FilterControlWidth="100%" 
                                                     HeaderStyle-HorizontalAlign="Center" 
                                                     HeaderStyle-Width="70px" 
                                                     HeaderText="ผ่านการพิจารณา" 
                                                     ItemStyle-HorizontalAlign="Right" 
                                                     ShowFilterIcon="false" 
                                                     UniqueName="approve_amount" Visible="true">
                                                     <HeaderStyle HorizontalAlign="Center" Width="70px" />
                                                     <ItemStyle HorizontalAlign="Right" />
                                                  </telerik:GridBoundColumn>
                                                  <telerik:GridBoundColumn 
                                                     DataField="status" 
                                                     FilterControlWidth="100%" 
                                                     HeaderStyle-HorizontalAlign="Center" 
                                                     HeaderStyle-Width="70px" 
                                                     HeaderText="สถานะ"
                                                     AllowFiltering="false" 
                                                     ShowFilterIcon="false">
                                                     <HeaderStyle HorizontalAlign="Center" Width="70px" />
                                                     <ItemStyle HorizontalAlign="Center" />
                                                  </telerik:GridBoundColumn>
                                                 <telerik:GridTemplateColumn UniqueName="TemplateColumn1"
                                                     AllowFiltering="false"
                                                     ShowFilterIcon="false">
                                                    <ItemTemplate>
                                                        <asp:ImageButton ID="DetailControl" BorderWidth="0px" ImageUrl="../Image/Grid/Magnifier.gif" OnClientClick='<%# string.Format("return openProjectDetails(\"{0}\"); return false;", Eval("Sequence")) %>'
                                                            AlternateText="แสดงรายละเอียด" Style="float: right; cursor: pointer;" runat="server">
                                                        </asp:ImageButton>
                                                    </ItemTemplate>
                                                     <ItemStyle Width="70px" HorizontalAlign="Center" />
                                                 </telerik:GridTemplateColumn>
                                            </Columns>
                                             <editformsettings editformtype="Template">
                                                 <editcolumn uniquename="EditCommandColumn1"></editcolumn>
                                             </editformsettings>
                                     </mastertableview>
                                         <clientsettings enablerowhoverstyle="true">
                                             <clientevents /><selecting allowrowselect="True" /></clientsettings>
                                         <PagerStyle Mode="NextPrevAndNumeric" />
                                    </telerik:RadGrid>      
                            <br />
                        </td>
                        </tr>
                        <tr>
                        <td colspan="2" align="center">
                            <asp:Panel ID="pnDetail" runat="server" Width="95%" Visible="false">
                                <table width="100%">
                                    <tr>
                                        <td colspan="4" align="left" valign="top" bgcolor="#7DA5E0" 
                                            style="padding: 5px; color: #FFFFFF; font-weight: bold;">
                                            <asp:Label ID="lbStep1" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="top" width="20%" style="padding-top: 5px">
                                            <br />
                                            <%--ปีงบประมาณ :--%>
                                        </td>
                                        <td align="left" width="30%" style="padding-top: 5px; padding-left: 15px;">
                                            <br />
                                            <%--<telerik:RadComboBox ID="ddlYear" runat="server" Width="150px" 
                                                CssClass="textbox-string" 
                                                onselectedindexchanged="ddlYear_SelectedIndexChanged" AutoPostBack="True">
                                                <Items>
                                                </Items>
                                            </telerik:RadComboBox>--%>
                                        </td>
                                        <td align="right" valign="top" width="20%" style="padding-top: 5px">
                                            <br />
                                            วันที่ประชุม :
                                        </td>
                                        <td align="left" style="padding-top: 5px">
                                            <br />
                                                <%--<telerik:RadMaskedTextBox ID="txtDate" runat="server" Mask=" ##/##/####" SelectionOnFocus="SelectAll" TextWithLiterals=" //" Width="75px">
                                                </telerik:RadMaskedTextBox>
                                                
                                              <asp:LinkButton ID="lbtReceiveDate" runat="server" CssClass="LinkButton">
                                                   <img alt="" src="../Image/Calendar.gif" style="border:0px;vertical-align:middle;" />
                                              </asp:LinkButton>
                                              <telerik:RadToolTip ID="ToolTipReceiveDateSystem" runat="server" Animation="None" HideEvent="LeaveToolTip" Position="MiddleRight" ShowEvent="OnClick" Skin="Telerik" 
                                                TargetControlID="lbtReceiveDate" Modal="true">
                                                <telerik:RadCalendar id="CalendarReceiveDateSystem" runat="server" TitleFormat="MMMM yyyy" EnableMultiSelect="false" UseRowHeadersAsSelectors="false" UseColumnHeadersAsSelectors="false" DayCellToolTipFormat="dddd, dd MMMM, yyyy" NavigationPrevToolTip="เดือนก่อนหน้า" NavigationNextToolTip="เดือนถัดไป" FastNavigationNextToolTip="3 เดือนถัดไป" FastNavigationPrevToolTip="3 เดือนก่อนหน้า">
                                                    <ClientEvents OnDateClick="OnReceiveDateSystemClick" OnCalendarViewChanged="OnCalendarReceiveViewChanged"></ClientEvents>
                                                    <FastNavigationSettings EnableTodayButtonSelection="true" TodayButtonCaption="ไปที่วันนี้" OkButtonCaption="เปลี่ยน" CancelButtonCaption="ยกเลิก" />
                                                </telerik:RadCalendar>
                                              </telerik:RadToolTip>  --%>
                                              
                                            <telerik:RadMaskedTextBox ID="txtDate" runat="server" Mask=" ##/##/####" Width="75px" TextWithLiterals=" //" SelectionOnFocus="SelectAll"></telerik:RadMaskedTextBox>&nbsp
                                            <BDP:BasicDatePicker ID="BasicDatePicker1" runat="server" Columns="2" ShowCalendarOnTextBoxFocus="true" ShowWeekNumbers="true" DateFormat="d/M/yyyy" OnClientAfterSelectionChanged="AfterChange" DisplayType="Image" ShowNoneButton="false">
                                            </BDP:BasicDatePicker>
                                 &nbsp&nbsp<font color="red">*</font>
                                 <asp:RequiredFieldValidator 
                                       ID="v1" 
                                       runat="server" 
                                       ControlToValidate="txtDate" 
                                       ErrorMessage="*" 
                                       ValidationGroup="H"> 
                                 </asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="top" style="padding-top: 5px"> 
                                            หัวเรื่องการประชุม :
                                        </td>
                                        <td align="left" colspan="3" style="padding-top: 5px; padding-left: 15px;">
                                            <asp:TextBox ID="txtName" runat="server" Width = "90%"></asp:TextBox>&nbsp<font color="red">*</font>
                                 <asp:RequiredFieldValidator 
                                       ID="RequiredFieldValidator1" 
                                       runat="server" 
                                       ControlToValidate="txtName" 
                                       ErrorMessage="*" 
                                       ValidationGroup="H"> 
                                 </asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="top" style="padding-top: 5px">
                                            รายละเอียดการประชุม :
                                        </td>
                                        <td align="left" colspan="3" style="padding-top: 5px; padding-left: 15px;">
                                            <asp:TextBox ID="txtDescr" runat="server" TextMode="MultiLine" Width = "90%" Height="70px"></asp:TextBox>&nbsp&nbsp
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" valign="top" style="padding-top: 5px; padding-bottom: 15px;">
                                            หมายเหตุ :
                                        </td>
                                        <td align="left" colspan="3" style="padding-top: 5px; padding-bottom: 15px; padding-left: 15px;">
                                            <asp:TextBox ID="txtRemark" runat="server" Width = "90%"></asp:TextBox>&nbsp&nbsp
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="left" valign="top" bgcolor="#7DA5E0" 
                                            style="padding: 5px; color: #FFFFFF; font-weight: bold;">
                                            <asp:Label ID="lbStep2" runat="server" Text=""></asp:Label>
                                        </td>                         
                                    </tr>
                                    <tr>
                                        <td colspan="4" style="padding-top: 5px; padding-bottom: 15px;">
                                            <table width="100%">
                                                <tr>
                                                    <td align="center" width="45%" style="padding-top: 5px; font-style: oblique; color: #999999;">
                                                        <asp:Label ID="lbFrom" runat="server" Text=""></asp:Label>
                                                    </td>
                                                    <td align="center" width="10%" style="padding-top: 5px">
                                                    </td>
                                                    <td align="center" width="45%" style="padding-top: 5px; font-style: oblique; color: #999999;">
                                                        <asp:Label ID="lbTo" runat="server" Text=""></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="padding-top: 5px">
                                                        <table width="100%">
                                                            <tr>
                                                                <td align="right" width="25%" style="padding-top: 5px">
                                                                    <asp:Label ID="lbReqStratList" runat="server" Text="กิจกรรมย่อย :"></asp:Label>
                                                                </td>
                                                                <td align="left" style="padding-top: 5px; padding-left:5px;">
                                                                    <telerik:RadComboBox ID="ddlStrategy" runat="server" Visible="true" OnSelectedIndexChanged="ddlStrategy_SelectedIndexChanged"
                                                                        AllowCustomText="true" CausesValidation="false" DataTextField="text" AutoPostBack="true"
                                                                        DataValueField="value" EmptyMessage="---- พิมพ์ที่นี่เพื่อค้นหากิจกรรมย่อย ----"
                                                                        Filter="Contains" OnClientTextChange="onTextChange" Width="90%">
                                                                    </telerik:RadComboBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" width="25%" style="padding-top: 5px">
                                                                    <asp:Label ID="lbReqJobSite" runat="server" Text="หน่วยงาน :"></asp:Label>
                                                                </td>
                                                                <td align="left" style="padding-top: 5px; padding-left:5px;">
                                                                    <telerik:RadComboBox ID="ddlJobSite" runat="server" Visible="true" OnSelectedIndexChanged="ddlJobSite_SelectedIndexChanged"
                                                                        AllowCustomText="true" CausesValidation="false" DataTextField="text" AutoPostBack="true"
                                                                        DataValueField="value" EmptyMessage="---- พิมพ์ที่นี่เพื่อค้นหาหน่วยงาน ----" 
                                                                        Filter="Contains" OnClientTextChange="onTextChange" Width="90%">
                                                                    </telerik:RadComboBox>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                    <td align="center" style="padding-top: 5px">
                                                        
                                                    </td>
                                                    <td style="padding-top: 5px">
                                                        <table width="100%">
                                                            <tr>
                                                                <td align="right" width="25%" style="padding-top: 5px">
                                                                    <asp:Label ID="lbAppStratList" runat="server" Text="Aกิจกรรมย่อย :" Visible="False"></asp:Label>
                                                                </td>
                                                                <td align="left" style="padding-top: 5px; padding-left:5px">
                                                                    <telerik:RadComboBox ID="ddlStrategy1" runat="server" Visible="False"
                                                                        AllowCustomText="true" CausesValidation="false" DataTextField="text" 
                                                                        DataValueField="value" EmptyMessage="---- พิมพ์ที่นี่เพื่อค้นหากิจกรรมย่อย ----"
                                                                        Filter="Contains" OnClientTextChange="onTextChange" Width="90%">
                                                                    </telerik:RadComboBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" width="25%" style="padding-top: 5px">
                                                                    <asp:Label ID="lbAppJobSite" runat="server" Text="Aหน่วยงาน :" Visible="False"></asp:Label>
                                                                </td>
                                                                <td align="left" style="padding-top: 5px; padding-left:5px">
                                                                    <telerik:RadComboBox ID="ddlJobSite1" runat="server" Visible="False"
                                                                        AllowCustomText="true" CausesValidation="false" DataTextField="text" 
                                                                        DataValueField="value" EmptyMessage="---- พิมพ์ที่นี่เพื่อค้นหาหน่วยงาน ----" 
                                                                        Filter="Contains" OnClientTextChange="onTextChange" Width="90%">
                                                                    </telerik:RadComboBox>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" style="padding-top: 5px">
                                                        <asp:ListBox ID="lstReq" runat="server" Width="97%" Height="320px" 
                                                            SelectionMode="Multiple"></asp:ListBox>
                                                    </td>
                                                    <td align="center"  style="padding-top: 5px">
                                                        <asp:Button ID="btnSelect" runat="server" Text=">"  OnClick="btnSelect_Cleck"/>
                                                        <br />
                                                        <br />
                                                        <asp:Button ID="btnSelectAll" runat="server" Text=">>>" OnClick="btnSelectAll_Cleck" />
                                                        <br />
                                                        <br />
                                                        <asp:Button ID="btnRemove" runat="server" Text="<" OnClick="btnRemove_Cleck" />
                                                        <br />
                                                        <br />
                                                        <asp:Button ID="btnRemoveAll" runat="server" Text="<<<" OnClick="btnRemoveAll_Cleck" />
                                                    </td>
                                                    <td align="center" style="padding-top: 5px">
                                                        <asp:ListBox ID="lstApp" runat="server" Width="97%" Height="320px" 
                                                            SelectionMode="Multiple"></asp:ListBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" align="left" valign="top" bgcolor="#7DA5E0" 
                                            style="padding: 5px; color: #FFFFFF; font-weight: bold;">
                                            ขั้นตอนที่ 3 : กดปุ่มเพื่อบันทึกหรือยกเลิก
                                        </td>                  
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="4" style="padding-top: 10px; padding-bottom: 15px;">
                                            <asp:Button ID="btnEdit" runat="server" Text="บันทึกการเปลี่ยนแปลง" OnClick="btnEdit_Click" Visible="false" ValidationGroup="H"/>
                                            <asp:Button ID="btnSave" runat="server" Text="บันทึก" OnClick="btnSave_Click" Visible="false" ValidationGroup="H"/>&nbsp&nbsp
                                            <asp:Button ID="btnCancel" runat="server" Text="ยกเลิก" OnClick="btnCancel_Click" CausesValidation="false"/>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </div>
    </td>
    </tr>
</table>
    
</asp:Content>
